<?php

use Phinx\Migration\AbstractMigration;

class AddJsonFieldProjectTemplateTable extends AbstractMigration
{

    public function up()
    {
        $this->table("project_template")
            ->addColumn('json', 'json', ['null' => true, 'comment' => 'json字段'])
            ->save();
    }

    public function down()
    {
        $this->table("project_template")
            ->removeColumn('json')
            ->save();
    }
}
